This is a collection of functions to assist with templating for learning related content
Properties
Name | Returns | Notes | Example |
---|---|---|---|
modules | ModuleFolderMap | Get a Map of modules, keyed on the path in the form prog/course/mod | |
totalCpdPoints | Integer | Get the sum of all CPD points allocated to the current user | |
allCpdAwards | List | Get all CPD awards to the current user |
Methods
Name | Returns | Notes | Example |
---|---|---|---|
moduleFieldNames ( ) | Map | Find the names of all module fields which have been stored in the current site from all users and for all modules The result is a map, where each entry in the map is a list of field names for a module keyed on the module path in the form p/c/m | |
moduleFieldNames ( websiteName ) | Map | Returns a map, keyed on the module path, of a map of field names and answers | |
moduleFieldValues ( websiteName, profile ) | Map | Returns a map, keyed on the module path, of a map of field names and answers |
Hide comments
